package com.kingre.et.util;


import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MailAuthenticator extends Authenticator {
    //******************************
    //由于发送邮件的地方比较多,
    //下面统一定义用户名,口令.
    //******************************
    public static String HUAWEI_MAIL_USER = "yjg5";
    public static String HUAWEI_MAIL_PASSWORD = "791122";

    public MailAuthenticator(){
    }

    protected PasswordAuthentication getPasswordAuthentication(){
        return new PasswordAuthentication(HUAWEI_MAIL_USER, HUAWEI_MAIL_PASSWORD);
    }
}
